<!-- 本示例未包含完整css，获取外链css请参考上文，在hello uni-app项目中查看 -->
<template>
	<view>
		<uni-nav-bar class="nav-bar" left-icon="home-filled" title="使用记录" @clickLeft="goToHome" fixed :border="false" />
		<wly-tabnav ref="tabnav" :fixed="true" :tabnav="tabnav" @ontype_='ontype'></wly-tabnav>
	</view>
</template>

<script>
export default {
	data() {
		return {
			scrollTop: 0,
			old: {
				scrollTop: 0
			}
		}
	},
	methods: {
		goToHome() {
			uni.switchTab({
				url: '/pages/index/index'
			})
		}
	}
}
</script>
<style scoped>
.nav-bar {
	padding-top: 90rpx;
}
</style>